# Makefile

CXXFLAGS = -Wall -Werror -pedantic -pedantic-errors -O0 -g -pthread -lpthread

CC = g++

archivos = $(filter-out main.cpp test.cpp, $(wildcard *.cpp))

INCLUDES = ../../comun ../MotorDeConsultas

bin = $(archivos:.cpp=.o)

robjs = $(wildcard *.o main test)

all: binaries

binaries: $(bin)

%.o: %.cpp
	$(CC) $(CXXFLAGS) -I$(INCLUDES) -c $<

test: $(bin)
	$(CC) $(CXXFLAGS) $(bin) test.cpp -o test
	
clean:
	rm $(robjs)

.PHONY: clean all binaries
